package com.ardf.mapper;

import com.ardf.entity.Project;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ShiYunHao
 * @since 2025-01-06
 */
public interface ProjectMapper extends BaseMapper<Project> {

    /**
     * 获取最近的项目
     */
    Project getRecentProject(@Param("competitionId") Long competitionId,
                             @Param("nowDateTime") LocalDateTime nowDateTime);
}
